package com.gopay.common.domain.riskcontrol;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.gopay.common.domain.BaseEntity;


/**
 * 
 * @RcOperLog.java
 * @author dongdh
 * @2016年1月18日 上午11:54:40  www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name="RC_OPER_LOG")
public class RcOperLog  extends BaseEntity {
	private static final long serialVersionUID = 1L;

	@Column(name="CREATED_TS")
	private Date createdTs;

	@Id
    @SequenceGenerator(name="RC_OPER_LOG_ID_GENERATOR",allocationSize=1,initialValue=1, sequenceName="RC_OPER_LOG_SEQ")
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="RC_OPER_LOG_ID_GENERATOR")
	private Long id;

	@Column(name="OP_TYPE")
	private String opType;

	@Column(name="OPER_ID")
	private String operId;

	@Column(name="\"SNAPSHOT\"")
	private String snapshot;

	@Column(name="TARGET_ID")
	private String targetId;

	@Column(name="TARGET_TYPE")
	private String targetType;

	public RcOperLog() {
	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getOpType() {
		return this.opType;
	}

	public void setOpType(String opType) {
		this.opType = opType;
	}

	public String getOperId() {
		return this.operId;
	}

	public void setOperId(String operId) {
		this.operId = operId;
	}

	public String getSnapshot() {
		return this.snapshot;
	}

	public void setSnapshot(String snapshot) {
		this.snapshot = snapshot;
	}

	public String getTargetId() {
		return this.targetId;
	}

	public void setTargetId(String targetId) {
		this.targetId = targetId;
	}

	public String getTargetType() {
		return this.targetType;
	}

	public void setTargetType(String targetType) {
		this.targetType = targetType;
	}

    public Date getCreatedTs() {
        return createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

}